package com.supermarket.api.repository;

import com.supermarket.api.entity.ProductAttributeEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 商品属性相关
 * @author 李其伟
 * @date 2023/10/19
 */
@Repository
public interface ProductAttributeRepository extends JpaRepository<ProductAttributeEntity, Long> {

    List<ProductAttributeEntity> findAllBySkuOrderBySortAsc(String sku);
}
